﻿using System.Collections.Generic;
using System.Xml.Serialization;
using EscapeZone.Mapping;
using Microsoft.Xna.Framework;

namespace EscapeZone.Serialization
{
    [XmlType("Guard")]
    public class GuardDefinition : IDefinition
    {
        [XmlElement("Position")]
        public Vector2 Position { get; set; }

        [XmlArray("Checkpoints")]
        [XmlArrayItem("Checkpoint")]
        public List<Vector2> Checkpoints { get; set; }

        [XmlIgnore]
        public ElementType Type
        {
            get { return ElementType.Guard; }
        }
    }
}